﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace VK.Casemeet.ADs
{
    public class ADEntity
    {
        public int ADID { set; get; }
        public string Code { set; get; }
        public string Image { set; get; }
        public string Description { set; get; }
        public int Width { set; get; }
        public int Height { set; get; }
        public string Url { set; get; }
        public int Target { set; get; }
        public bool IsEnable { set; get; }

        public int ProvinceID { set; get; }
        public int CityID { set; get; }

        public string ProvinceArea { set; get; }

        public string TargetStr
        {
            get
            {
                string result = "_self";
                switch (Target)
                {
                    case 1: result = "_self"; break;
                    case 2: result = "_blank"; break;
                }
                return result;
            }
        }
    }
}
